package dao;


import pojo.User;

import java.util.List;

public interface IUserDao {

    //查询所有用户
    public List<User> findAll() throws Exception;


    //根据条件进行用户查询
    public User findByCondition(User user) throws Exception;

    //根据用户名
    public Integer updateUserByUserId(User user) throws Exception;
    //删除用户
    public Integer deleteUserByCondition(User user) throws Exception;
    // 添加用户
    public Integer addUser(User user) throws Exception;

}
